package org.example.springioc.Controller;

import jakarta.annotation.Resource;
import org.example.springioc.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class UserController {

   @Resource(name = "userInfo2")
    private UserInfo user;

    public void sayHi(){
        System.out.println(user);
        System.out.println("hi, UserController.....");
    }
}
